<template>
    <v-dialog
     transition="dialog-bottom-transition"
     :model-value="showDialog"
     width="auto">
     <v-card
        max-width="400"
        prepend-icon="mdi-update"
        text="Your application will relaunch automatically after the update is complete."
        title="Update in progress"
      >

        <template v-slot:actions>
            <v-spacer></v-spacer>

            <v-btn @click="()=>closeDialog()">
                取消
            </v-btn>

            <v-btn @click="()=>closeDialog()">
                确定
            </v-btn>
        </template>
    </v-card>
    </v-dialog>
</template>
<script lang="ts" setup>
const props = defineProps({
    showDialog: {
        type: Boolean,
        default: false,
    },
    closeDialog: {
        type: Function,
        default: ()=>(flag):void => false,
    }
    
});

</script>